package com.supreme.commonrocketmq.config.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Data
@Configuration
@PropertySource(value = "classpath:rocketmq.properties")
@ConfigurationProperties(prefix = "supreme-rocketmq")
public class RocketmqProps {

    @Data
    public static class Topic {
        private String group;
        private String name;
    }

    private String producerNameSrv;

    private Topic example;

    private Topic order;

    private Topic logger;

    private Topic mysqlBinlog;
}
